#!/bin/sh
read max
min=$max
sum=$max
i=1
while [$i -lt 5]
do
   read  x
sum=`expr $sum + $x`
   if [ $max -lt  $x ]
     then
          max=$x
   fi
   if [ $ x -lt  $min ]
     then
          min=$x
   fi
    i=`expr $i + 1`
done
echo "sum = $sum ;   max = $max    min = $min "
